﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="template.aspx.cs" Inherits="admin_newsletter_template" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Kimland - Bản tin</title>
    <script src="/admin/js/newsletter.js" type="text/javascript"></script>
   <style type="text/css">
        .boxMenuL:hover a,.boxMenuL.active a{color:#d80018;text-decoration:none;text-transform:uppercase;}
        .boxMenuL:hover,.boxMenuL.active{margin-bottom:5px;}
        .boxMenuL:hover .l,.boxMenuL.active .l{background:url(/images/sm_l.png) no-repeat;}
        .boxMenuL:hover .m,.boxMenuL.active .m{background:url(/images/sm_m.png) repeat-x;}
        .boxMenuL:hover .r,.boxMenuL.active .r{background:url(/images/sm_r.png) no-repeat;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="body">
    <div class="bodyL">
        <p class="gOval"><a href="/admin/newsletter/default.aspx" class="newsletter"></a></p>
        <div class="menuL">
            <div class="boxMenuL ">
                <span class="l"></span><span class="m"><a href="/admin/newsletter/default.aspx">DS nhận tin</a></span><span class="r"></span>                   
            </div>               
        </div>
        <div class="menuL">
            <div class="boxMenuL active">
                <span class="l"></span><span class="m"><a href="/admin/newsletter/template.aspx">Mẫu newsletter</a></span><span class="r"></span>                   
            </div>
        </div>
        
    </div>
           
    <div class="bodyR">
        <div class="topCatBR">
            <p class="l"></p>
            <div class="m">
                <p class="pos">
                    <a href="/admin/newsletter/default.aspx">Danh sách đăng kí nhận bản tin</a>
                </p>
            </div>            
            <p class="r"></p>
        </div>
        <div class="boxBorder" style="height:500px;min-height:500px;height:auto">
            <div class="info_div" id="fail" runat="server" visible="false">        
                <asp:Label ID="lblMessage" runat="server" Text="" CssClass="ico_cancel"></asp:Label>
            </div>
             <p id="loading">
                    <img src="/images/loading7.gif" /></p>  
            <asp:Button ID="btnXoa" runat="server" Text="Xóa" CssClass="buttonA" OnClientClick="return doDel();" onclick="btnDel_Click"/>
            <a href="/admin/newsletter/editor.aspx" class="buttonA">Thêm mới</a>
            <table id="table">
	            <thead>
	            <tr>
		            <th><input type="checkbox" class="noborder" onclick="doCheckAll(this)"/></th>
		            <th>Tiêu đề</th>
		            <th>Nội dung</th>
		            <th>Ngày cập nhật</th>
                    <th>Chú thích</th>
                    <th width="100px">Action</th>
	            </tr>
	            </thead>
	            <tbody>
                <asp:Repeater ID="repTemplate" runat="server"  >
                <ItemTemplate>
                <tr>
		            <td class="table_check">
                        <input type="checkbox" id='<%# Eval("id") %>' group='check'/>
                    </td>
		            <td class="table_title">
                        <%# Eval("subject")%>
                    </td>		        
		            <td><%# LIB.ConvertUtility.ExtractString(LIB.StringUtility.StripHTML(Eval("noidung").ToString()),100)%>...</td>
                    <td><%# LIB.ConvertUtility.ConvertDateTimeVN1(Convert.ToDateTime(Eval("createDate").ToString()))%></td>
                    <td><%# Eval("chuthich")%></td>
                    <td align="center">                    
                        <a href="/admin/newsletter/editor.aspx?id=<%# Eval("id") %>" class="buttonSA">Sửa</a>  |
                        <a href='javascript:void(0)' class="buttonSA" onclick='doSendMail(<%# Eval("id") %>)'>Send mail</a>
                        </td>
	            </tr>
                </ItemTemplate>
                </asp:Repeater>	        
	            </tbody>
            </table>
	          <div class="page" style="text-align:center;margin:15px 0px">
                <asp:Label ID="pagerbot" CssClass="pager" runat="server" Text=""></asp:Label>
            </div>
            <asp:HiddenField ID="hidKeyDel" runat="server" /> 
        </div>
    </div>
</div>
</asp:Content>





